package io.gitee.cofenghen.jdbctempleplus.util;

public class StringUtils {

    /**
     * 小驼峰转下划线
     * @param str
     * @return
     */
    public static String camelToSnake(String str) {
        return str.replaceAll("([a-z])([A-Z])", "$1_$2").toLowerCase();
    }
}
